<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich" xml:lang="en">
<head>
<title>培训方案</title>
<meta http-equiv="keywords" content="enter,your,keywords,here" />
<meta http-equiv="description"
	content="A short description of this page." />
<link
	href="#{facesContext.externalContext.requestContextPath}/css/public.css"
	rel="stylesheet" type="text/css" media="screen" />
<link
	href="#{facesContext.externalContext.requestContextPath}/css/main.css"
	rel="stylesheet" type="text/css" media="screen" />
<link
	href="#{facesContext.externalContext.requestContextPath}/css/work.css"
	rel="stylesheet" type="text/css" media="screen" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<!-- rich:message style-->
<style type="text/css">
	.rich-message-label{
		color:red;
	}
</style>
</head>
<body style="background-color: #ffffff">
<a4j:form>
	<div id="right">
		<div id="msgid" class="error pt10p bcf c0 tal" style="display: ">
			<a4j:outputPanel id="msgPanel">
				<center><h:outputText styleClass="cff" value="#{TrainBB.msg}" /></center>
			</a4j:outputPanel>
		</div>
		<div class="tablelist">
			<table width="100%" border="1" cellpadding="0" cellspacing="0"
				bordercolor="#c3c3c3" style="border-collapse: collapse">
				<tr>
					<td>OFFICE<h:selectOneMenu
						class="style_input" value="#{TrainBB.office_code}">
						<f:selectItem />
						<f:selectItems value="#{otherParamBB.selectItems_officeInfId}" />
					</h:selectOneMenu></td>
					<td>培训类型<h:selectOneMenu
						class="style_input" value="#{TrainBB.tp_plankind}">
						<f:selectItem />
						<f:selectItems value="#{paramBB.selectItem['tp_plankind']}" />
					</h:selectOneMenu></td>
				</tr>
				<tr>
					<td>开始日期 <rich:calendar id="begindate"
						datePattern="yyyy-MM-dd" value="#{TrainBB.tp_used_begin}"></rich:calendar></td>
					<td>终止日期 <rich:calendar id="enddate"
						datePattern="yyyy-MM-dd" value="#{TrainBB.tp_used_end}"></rich:calendar></td>
				</tr>
				<tr>
					<td>培训名称<h:inputText
						class="style_input" value="#{TrainBB.tp_planname}" /></td>
					<td></td>
					<td><h:commandButton  styleClass="buttonbg2" value="查询"
						action="#{TrainBB.queryTrainplansByAccount}" reRender="traintable,msgPanel,cutpage" /></td>
				</tr>
			</table>
		</div>
		<div class="tablelist2"><rich:dataTable id="traintable"
			rowClasses=",yellow" width="100%" value="#{TrainBB.trainplans}"
			var="table">
			<a4j:keepAlive beanName="TrainBB" />
			<f:facet name="header">
				<rich:columnGroup>
					<rich:column>
						<h:outputText value="选择" />
					</rich:column>
					<rich:column>
						<h:outputText value="office" />
					</rich:column>
					<rich:column>
						<h:outputText value="培训类型" />
					</rich:column>
					<rich:column>
						<h:outputText value="培训名称" />
					</rich:column>
					<rich:column>
						<h:outputText value="考核名称" />
					</rich:column>
					<rich:column>
						<h:outputText value="开始时间" />
					</rich:column>
					<rich:column>
						<h:outputText value="结束时间" />
					</rich:column>
					<rich:column>
						<h:outputText value="培训状态" />
					</rich:column>
					<rich:column>
						<h:outputText value="操作人" />
					</rich:column>
					<rich:column>
						<h:outputText value="操作时间" />
					</rich:column>
				</rich:columnGroup>
			</f:facet>
			<rich:columnGroup>
				<rich:column>
					<h:selectBooleanCheckbox value="#{table.select}" />
				</rich:column>
				<rich:column>
					<h:outputText value="#{table.office_code_value}" />
				</rich:column>
				<rich:column>
					<h:outputText value="#{table.tp_plankind_value}" />
				</rich:column>
				<rich:column>
					<h:outputText value="#{table.tp_planname}" />
				</rich:column>
					<rich:column>
					<h:outputText value="#{table.tp_e_aim}" />
				</rich:column>
				<rich:column>
					<h:outputText value="#{table.tp_used_begin}">
						<f:convertDateTime pattern="yyyy-MM-dd" timeZone="GMT+8" />
					</h:outputText>
				</rich:column>
				<rich:column>
					<h:outputText value="#{table.tp_used_end}">
						<f:convertDateTime pattern="yyyy-MM-dd" timeZone="GMT+8" />
					</h:outputText>
				</rich:column>
				<rich:column>
					<h:outputText style="color:#{(table.tp_planstate_value=='已培训')?'blue':'red'}" value="#{table.tp_planstate_value}" />
				</rich:column>
				<rich:column>
					<h:outputText value="#{table.op}" />
				</rich:column>
				<rich:column>
					<h:outputText value="#{table.op_date}" >
						<f:convertDateTime pattern="yyyy-MM-dd" timeZone="GMT+8" />
					</h:outputText>
				</rich:column>
			</rich:columnGroup>
		</rich:dataTable>
		</div>
		
		<div class="listbut">
			 <h:commandButton styleClass="buttonbg2" value="查看培训方案" action="#{TrainBB.toTrainDisply}" reRender="msgPanel" />
			 <h:commandButton styleClass="buttonbg2" value="查看培训资料" action="#{TrainBB.toCoursewareDisply}" reRender="msgPanel" />
			 <h:commandButton styleClass="buttonbg2" value="查看注册信息" action="#{TrainBB.toCoursewareByTestee}" reRender="msgPanel" />  
		</div>
	</div>
</a4j:form>
<!-- 
<script language="javascript">
	function()
</script>
 -->
</body>
</html>

